package com.neusoft.controller.physician;

import com.neusoft.service.DiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
//@CrossOrigin
@RequestMapping("/diseases")
public class DiseaseController {
    @Autowired
    DiseaseService diseaseService;
    @GetMapping("/searchDisease")
    public List<Map<String,Object>> searchDisease(String disease_code,String disease_name,String diseaseICD){
        return diseaseService.searchDisease(disease_code,disease_name,diseaseICD);

    }
}
